﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    @Scripts.Render(
        "~/bundles/jquery",
        "~/bundles/jqueryui",
        "~/bundles/modernizr",
        //"~/bundles/knockout",
        "~/bundles/common",
        "~/bundles/json2")
    @Styles.Render("~/Content/css",
        //"~/Content/themes/base/css",
        "~/Content/themes/ui-lightness/css")
    <script type="text/javascript">
        $(function () {
            $(".btn").button();
            //初始化顶部菜单
            //$(".toolbar").buttonset();
            $("#topmenu").buttonset();
        });
    </script>
    @*
        显示错误信息
    *@
    @if (!string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_ERR]))
    {
        <script type="text/javascript">
            $(function () {
                $("#dialog_err").dialog({
                    modal: true,
                    buttons: {
                        确定: function () {
                            $(this).dialog("close");
                        }
                    }
                });
            });
        </script>
    }

    @*
        显示消息提示
    *@
    @if (string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_ERR]) &&
         !string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_INF]))
    {
        <script type="text/javascript">
            $(function () {
                $("#dialog_inf").dialog({
                    modal: true,
                    buttons: {
                        确定: function () {
                            $(this).dialog("close");
                        }
                    }
                });
            });
        </script>
    }
    @RenderSection("header_ckeditor", false)
    @*
            可视编辑控件的JS代码段，可以在需要输出可视编辑控件的页面上加上以下代码段：
        @section header_ckeditor{
            <script src="@Url.Content("~/Content/ckeditor/ckeditor.js")" type="text/javascript" ></script>
            <script src="@Url.Content("~/Content/ckeditor/adapters/jquery.js")" type="text/javascript" ></script>
        }
    *@
    @RenderSection("header_datepicker", false)
    @*
            编辑控件的JS代码段，可以在需要输出编辑控件的页面上加上以下代码段：
        @section header_datepicker{
            <script src="@Url.Content("~/Scripts/jquery-ui-js/jquery.ui.datepicker-zh-CN.js")" type="text/javascript"></script>
            <script type="text/javascript">
                $(function () {
                    $(".datepicker").datepicker({dateFormat:'yy-mm-dd'});
                });
            </script>
        }
    *@
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <img src="~/Content/image/top.png" style="height:6.8em; padding:.3em" />
            </div>
            <div style="float: right; position: absolute; top: 0px; right: 0px; text-align: right;">
                <div style="padding: 0px; margin: 5px;">
                    <h4 style="color:#fff;">
                        <a href="@Url.Action("LogOff", "Account")" style="color:#fff;">注销</a>
                        ：<strong>@User.Identity.Name</strong>!
                    </h4>
                </div>
                <div id="topmenu" class="toolbar">
                    <a href="@Url.Content("~/")" class="btn">首页</a>
                    <a href="@Url.Content("~/Category")" class="btn">分类管理</a>
                    <a href="@Url.Content("~/ExpertManage")" class="btn">专家管理</a>
                    <a href="@Url.Content("~/Extract/Step1")" class="btn">专家抽取</a>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
    @*
        显示错误信息
    *@
    @if (!string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_ERR]))
    {
        <div id="dialog_err" title="错误信息">
            <p>@TempData[ywxt.Common.Common.CONST_TEMPDATA_INF]</p>
        </div>
        <!--
        错误代码如下：
        @TempData[ywxt.Common.Common.CONST_TEMPDATA_ERR]
        -->
    }
    @*
        显示提示信息
    *@
    @if (string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_ERR]) &&
        !string.IsNullOrEmpty((string)TempData[ywxt.Common.Common.CONST_TEMPDATA_INF]))
    {
        <div id="dialog_inf" title="提示信息">
            <p>@TempData[ywxt.Common.Common.CONST_TEMPDATA_INF]</p>
        </div>
    }
    <!-- 消息提示 -->
    <div id="thisPageMsg" title="消息提示">
    </div>
</body>
</html>
